package com.project.fiveCerealsSavoury.service;

import java.util.List;

import com.project.fiveCerealsSavoury.domain.Trade;
import com.project.fiveCerealsSavoury.domain.TradeStatus;
import com.project.fiveCerealsSavoury.exception.BizException;
import com.project.fiveCerealsSavoury.transfer.Page;
import com.project.fiveCerealsSavoury.transfer.UserPage;

public interface TradeService {
	/**
	 * 添加交易记录
	 * 
	 * @param trade
	 * @return
	 * @throws BizException
	 */
	public boolean tradeAdd(Trade trade) throws BizException;
	/**
	 * 用户查询分页
	 */
	public Page listQuery(UserPage userPage,Integer id)throws BizException;
	/**
	 * 公司内务查询按照类型模糊查询
	 */
	public List<Trade> listStatus(TradeStatus tradeStatus)throws BizException;
}
